package com.hn.zhijian.web.router;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author carl chen
 * @Classname IndexRouter
 * @Description TODO
 * @Date 2019/11/19 9:39
 */
@Controller
@RequestMapping("/")
public class IndexRouter {

    @GetMapping("/")
    public String defaultIndex(){
        return "index";
    }

    @GetMapping("/index")
    public String index(){
        return "index";
    }

    @GetMapping("/login")
    public String login(){
        return "login";
    }

    @GetMapping("/err")
    public String err(){
        return "unauthorized";
    }
}
